<html>
<body>
<script>
var chromeWidth = window.outerWidth - window.innerHeight;
var chromeHeight = window.outerHeight - window.innerHeight;
var width = window.screen.availWidth - chromeWidth;
var height = window.screen.availHeight - chromeHeight;
var width = window.screen.width;
var settings = window.location.href.match('\\\?.*$')[0];
settings = settings.replace(
  'settings={',
  'settings={"win":{"resize":true},');
var url = "aquarium.html" + settings;
var options = '' +
 'outerWidth=' + width + ',' +
 'outerHeight=' + height + ',' +
 'left=0,' +
 'top=0,' +
 'menubar=yes,' +
 'toolbar=yes,' +
 'location=yes,' +
 'status=yes,' +
 '';
options = '';
console.log(options);
window.open(url, '', options);
</script>
</body>
</html>
